import partbinfo from "./Partbinfo"
import { get, post } from '../http';
import api from "../api";
import { AxiosPromise } from "axios";
import partbModel from "../partbModel";
class partbinfos implements partbinfo {

    query(params?: any): AxiosPromise<any> {
        return get(api.queryyi, params)
    }
    add(data: partbModel): AxiosPromise<any> {
        return post(api.Addyi, data)
    }
}
export default new partbinfos()